#include <bits/stdc++.h>
using namespace std;
int n,m,a[100005],exc,s,t,h;
bool b[100005]={1};
int main(){
freopen("duel.in","r",stdin);
freopen("duel.out","w",stdout);
cin>>n;
for(int i = 0;i < n;i++) cin >>a[i];
if(n % 2 == 0) cout <<n/2;
if(n% 2 == 1) cout <<(n+1)/2;

return 0;
}
